package com.zking.web.websocketdemo.model;


import cn.afterturn.easypoi.excel.annotation.Excel;
import com.zking.web.websocketdemo.utils.ExcelImport;
import lombok.AllArgsConstructor;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
@AllArgsConstructor
public class UserTest {

   @NotBlank
   @Excel(name = "姓名")
   private String name;
   @Excel(name = "性别", replace = { "男_1", "女_2" }, suffix = "生")
   private String sex;
   @Excel(name = "年龄")
   private String age;
   @Excel(name = "出生日期", format = "yyyy-MM-dd")
   private Date birthday;
   @Excel(name = "手机号码")
   private String phone;
   @Email(message = "请填写正确的邮箱地址")
   @Excel(name = "邮箱")
   private String email;



}
